<?php

namespace app\filemanage\controller;

use think\Controller;
use think\Request;

class Image extends Common
{   
    /**
     * 伪装图片真实地址
     * @return [type] [description]
     */
    public function view() {
        $path = input('get.path');
        $src  = USER_ROOT_PATH . $path;
        // $sTmpVar = fread(fopen($src, 'r'), filesize($src));
        header("Content-type: image/* ");
        echo file_get_contents($src);
        // exit();
    }
}
